<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 郭林泽
  Date: 2021-01-28
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/"/>
    <link rel="stylesheet" href="webjars/layui/2.5.5/css/layui.css">
    <style>
        label{
            color: #333333;
        }
    </style>
</head>
<body class="layui-bg-black" >
    <div class="layui-card" style="width: 30%;margin: 150px auto;">
        <div class="layui-card-header">登录</div>
        <div class="layui-card-body" >
            <form method="post" action="login" class="layui-form" style="padding: 10px 50px 0px 0px" lay-filter="addForm">
                <c:if test="${not empty loginError}">
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <div class="layui-input-block" style="color: red;">
                            ${loginError}
                        </div>
                    </div>
                </c:if>
                <div class="layui-form-item">
                    <label class="layui-form-label">登录名:</label>
                    <div class="layui-input-block">
                        <input type="text" name="userCode" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">密码:</label>
                    <div class="layui-input-block">
                        <input type="text" name="password" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="submit" class="layui-btn" value="登&emsp;录">
                        <input type="submit" class="layui-btn" value="取&emsp;消">
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
</html>
